Skip to content

feat(release): notes with a summary, grouped entries and an update line - #237

Merged
JeffreyJYZ merged 1 commit into
mainfrom
feat/release-note-text
Nov 22, 2026
Merged

JeffreyJYZ merged 1 commit into
mainfrom
feat/release-note-text

Conversation

@jyzbot

@jyzbot jyzbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Published bodies were a bare git log --pretty=format:%s dump. The regression has a specific origin: e37f6bd built notesFromGit on commit subjects only, and git log -S 'gh pr view' -- scripts shows no code ever fetched PR bodies — the later refactors copied that shape faithfully.

Notes now carry, in order:

  • A one-line index — Two changes: <title>; <title>. — derived from the same titles the sections render, so it cannot disagree with them, and a test fails if any summary sentence appears inside an entry paragraph. That guard exists because my own first two attempts produced a stitched fragment and then a verbatim duplicate.
  • Sections — Features / Fixes / Under the hood, with type(scope): stripped, the (#NNN) kept, and the PR body's first paragraph under the title. A version bump renders nowhere.
  • An update line naming the version from the tag, never a constant.

gh pr view supplies the bodies; an unreadable PR stays a bare subject, and a total gh failure degrades to the subject list with an explicit "summary unavailable" line — a release that published is worth more than a pretty body.

scripts/release-notes.ts --tag quarry-alphaNNN prints the notes without publishing, which is how the sample in this PR was produced and how the format is checked by hand.

notes.ts was split against the 200-line cap: composition, sources (git/gh), and the script as orchestrator. Gate 11/11, scripts tsc clean, file-size clean.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
quarry-docs Building Building Preview Nov 22, 2026 3:46am UTC

@JeffreyJYZ
JeffreyJYZ merged commit 0ac2258 into main Nov 22, 2026
5 of 6 checks passed
@JeffreyJYZ
JeffreyJYZ deleted the feat/release-note-text branch November 22, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants